#ifndef ADDITEM_H
#define ADDITEM_H

#include <QWidget>

namespace Ui {
class addItem;
}

class addItem : public QWidget
{
    Q_OBJECT

public:
    explicit addItem(QString& flag,QWidget *parent = nullptr);
    ~addItem();
    void setPix(const QPixmap &pic);
    void setAccount(const QString & account);
    void setNote(const QString & note);
    void setAttr(int  flag);
    QString getAccount();
    int getAttr();
    QString getIsFriend();

public slots:
    void handleAdd();

signals:
    void addSignal(const QString & account,const QString & note);

private:
    Ui::addItem *ui;
    QString m_isFriend;

    int m_attr;


};

#endif // ADDITEM_H
